﻿Element.prototype.get_SelectionEnd = function get_SelectionEnd()
{
	if (this.selectionEnd != null)
	{
		return this.selectionEnd;
	}
	var oSel = document.selection.createRange();
	oSel.moveStart('character', -this.value.length);
	return oSel.text.length;

};
